package demo05;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

//@Repository
//@Service
//@Controller
@Component
public class Person {
  //  @Autowired
    //@Resource(name = "sweater")
    @Resource
    private Clothes sweater;
    //private Clothes clothes;
    public void play(){
        sweater.wear();
        System.out.println("出去玩爽pwq ----");
    }
}
